package br.com.monitorimoveis.comum.servico.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import br.com.monitorimoveis.comum.entidade.InfoColeta;
import br.com.monitorimoveis.comum.persistencia.IInfoColetaDAO;
import br.com.monitorimoveis.comum.servico.IInfoColetaService;

@Service
public class InfoColetaService implements IInfoColetaService {

	@Autowired
	private IInfoColetaDAO dao;
	
	@Transactional
	public void inserir(InfoColeta infoColeta) {
		dao.inserir(infoColeta);
	}
	@Transactional
	public void atualizar(InfoColeta infoColeta) {
		dao.atualizar(infoColeta);
	}
	@Transactional
	public InfoColeta getById(int id) {
		return dao.getById(id);
	}
	@Transactional
	public List<InfoColeta> listarPendentes() {
		return dao.listarPendentes();
	}

	
}
